<?php include './application/views/common/zhs_header.php';?>

<?php include './application/views/common/zhs_usercenter_acnt.php';?>
<div class="inv_box w">
<?php include './application/views/common/zhs_usercenter_left.php';?>
 
  <div class="membd_right">
  <h3 class="membdrg_tit">我的借款标的</h3>
  <div class="membox_bd">

  
  <?php 
  	if(!empty($borrow_list)){ ?>
  		<table class="memzdbd_tab" style="margin-top:14px;">
      <thead>
        <tr>
          <th width="180" height="38">借款标题</th>
	      <th width="80">借款总额</th>
          <th width="80">借款周期</th>
          <th width="80">借款状态</th>
          <th width="120">启标日期</th>
          <th width="120">结束日期</th>
          <th width="80">应还总额</th>
          <th width="180">还款方式</th>
          <th width="80">操作</th>
        </tr>
      </thead>
      <tbody>
        <?php 
			foreach ($borrow_list as $repay){
		?>
          <tr>
            <td height="44">
<a href="/borrow/zhs_obj/<?php echo $repay['id'];?>" class="cnxq_a<?php echo $repay['ftype'];?>"><?php echo CON_NAME;?></a>-<a> <?php echo $borrow_type[$repay['ftype']].$repay['id'];?></a>
            </td>
            <td>￥<?php echo $repay['account'];?></td>
            <td><?php if($repay['is_day'] == '1') echo "<span>".$repay['time_limit_day']."</span> 天"; else echo "<span>".$repay['time_limit']."</span> 月"; ?></td>
            <td>
            	<?php if ($repay['account_yes'] < $repay['account'] ){
            		if($repay['fstatus']==1 ){
						echo "招标中";
            		}else{
            			echo "待发布";
            		}
				}elseif($repay['fstatus'] == 1 && $repay['account'] <= $repay['account_yes'] ){
					echo "待审中";
				}elseif($repay['fstatus'] == 3 && $repay['repayment_account'] > $repay['repayment_yesaccount']){
					echo "还款中";
				}elseif($repay['fstatus'] == 3 &&  $repay['repayment_account'] <= $repay['repayment_yesaccount']){
					echo "已结束";
				}
				?>
			</td>
			  <td><?php echo date("Y-m-d H:i",$repay['bill_starttime']);?></td>
			   <td><?php echo date("Y-m-d H:i",$repay['each_time']);?></td>
			 <td>￥<?php echo $repay['repayment_account'];?></td>
			 <td> <?php echo $borrow_style[$repay['style']];?></td>
			  <td><a href="/repay/zhs_recharge.html">直通还款</a></td>
			  
          </tr>
         <?php 
		}
		?> 
      </tbody>
    </table>
     <div class="invbd_page"><?php echo $this->pagination->create_links();?></div>
  <?php }?>
  
  </div>  

 
  </div>
</div> 
<?php include './application/views/common/zhs_footer.php';?>

<?php include './application/views/common/zhs_right.php';?>

